package com.dixon.worddayday.response;

public enum ResponseCode{

    // validate code
    DATA_NOT_NULL			("BR2001", "入参不能为空"),
    DATA_INVALID			("BR2002", "入参无效"),


    // shop user...

    SUCCESS					("100", "成功"),
    ENTITY_NOTFOUND			("BR102", "没有找到指定对象"),
    SERVER_ERROR			("BR201", "服务器出错"),
    INVALID_DATE			("BR202", "无效的日期"),
    INVALID_REQUEST			("BR203", "无效的请求"),
    BUSINESS_EXCEPTION		("BR204", "业务异常"),
    TRANSACTION_ORDER_IS_NULL("BR444","亲，出错了。"),

    SYSTEM_EXCEPTION("P900","系统出错了哦，请稍后再试"),
    UPLOAD_BEYOND_MAX("P901","上传文件大小超过限制"),
    HTTP_METHOD_NOT_SUPPORT("P902","请求方式不支持"),
    HTTP_MEDIA_TYPE_NOT_SUPPORTED_EXCEPTION("P903","contentType类型不支持")
    ;

    private String respCode = "";
    private String respDesc = "";

    ResponseCode(String code, String desc){
        this.respCode = code;
        this.respDesc = desc;
    }

    public String getCode(){
        return this.respCode;
    }
    public String getDesc(){
        return this.respDesc;
    }
}
